package hu.tortavar2.client.view.adminpages;

import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.SpanElement;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiFactory;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.Widget;

public class MainAdminContentImpl extends Composite {

	private static MainAdminContentImplUiBinder uiBinder = GWT
			.create(MainAdminContentImplUiBinder.class);

	interface MainAdminContentImplUiBinder extends
			UiBinder<Widget, MainAdminContentImpl> {
	}

	public MainAdminContentImpl() {
		initWidget(uiBinder.createAndBindUi(this));
		
	}

	@UiField SimplePanel grid_0x;
	@UiField SimplePanel padding_color;
	@UiField Anchor newProductButton;
	@UiField SpanElement newProductButtonText;
	@UiField Anchor editProductButton;
	@UiField SpanElement editProductButtonText;
	@UiField HTMLPanel row;
	
	@UiHandler("newProductButton")
	void onClickNewProduct(ClickEvent e) {
		Window.alert("clicked " + e.getSource());
	}
}
